package com.seednia.module.core.search.util;

import org.apache.lucene.queryParser.QueryParser;

import com.seednia.foundation.framework.dto.AbstractRecord;
import com.seednia.foundation.framework.dto.ICriteria;

public abstract class AbstractQueryBuilder {

	public static final String escape(String str)
	{
		return QueryParser.escape(str);
	}
	
	/**
	 * Builds a string that is used to query in search engine
	 * @return search engine query text (Lucene specific)
	 */
	public abstract String buildQueryString(ICriteria record);
}
